package com.sy.structural.flyweight;

public class MainTest {

    public static void main(String[] args) {
        AbstractWaiterFlyWeight shen = ZuDao.getFlyWeight("");
        shen.service();
        System.out.println(shen);

        AbstractWaiterFlyWeight yong = ZuDao.getFlyWeight("");
        yong.service();
        System.out.println(yong);

        AbstractWaiterFlyWeight shen2 = ZuDao.getFlyWeight("");
//        shen2.service();
        System.out.println(shen2);
    }
}
